﻿using System;
using UnityEngine;

// Token: 0x020002E7 RID: 743
public class LockLocalPosition : MonoBehaviour
{
	// Token: 0x06001137 RID: 4407 RVA: 0x0007F2F9 File Offset: 0x0007D4F9
	private void Update()
	{
		if (this.isLocked)
		{
			base.transform.localPosition = this.localPositionTarget;
		}
	}

	// Token: 0x040016AE RID: 5806
	public bool isLocked;

	// Token: 0x040016AF RID: 5807
	public Vector3 localPositionTarget;

	// Token: 0x040016B0 RID: 5808
	public Rigidbody rigid;
}
